﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SMTC.Model.Model;
using SMTC.WebCommon.Common;

public partial class PlanMangement_PlanDetail : BasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["mode"] != null && Request.QueryString["mode"].ToString() == "1")
        {
            gvPlanDetail.Columns[6].Visible = false;
        }
        this.initDate();
    }

    protected void initDate()
    {
        List<SMT_PlanDetailModel> modelList = new List<SMT_PlanDetailModel>();

        SMT_PlanDetailModel m1 = new SMT_PlanDetailModel();
        m1.xSVMaterial = "A2C53140578"; m1.PlanYear = 2011; m1.PlanMonth = 1; m1.PlanMount = 18000; modelList.Add(m1);
        SMT_PlanDetailModel m2 = new SMT_PlanDetailModel();
        m2.xSVMaterial = "A2C53140578"; m2.PlanYear = 2011; m2.PlanMonth = 2; m2.PlanMount = 18000; modelList.Add(m2);
        SMT_PlanDetailModel m3 = new SMT_PlanDetailModel();
        m3.xSVMaterial = "A2C53140578"; m3.PlanYear = 2011; m3.PlanMonth = 3; m3.PlanMount = 18000; modelList.Add(m3);
        SMT_PlanDetailModel m4 = new SMT_PlanDetailModel();
        m4.xSVMaterial = "A2C53140578"; m4.PlanYear = 2011; m4.PlanMonth = 4; m4.PlanMount = 18000; modelList.Add(m4);
        SMT_PlanDetailModel m5 = new SMT_PlanDetailModel();
        m5.xSVMaterial = "A2C53140578"; m5.PlanYear = 2011; m5.PlanMonth = 5; m5.PlanMount = 18000; modelList.Add(m5);
        SMT_PlanDetailModel m6 = new SMT_PlanDetailModel();
        m6.xSVMaterial = "A2C53140578"; m6.PlanYear = 2011; m6.PlanMonth = 6; m6.PlanMount = 18000; modelList.Add(m6);
        SMT_PlanDetailModel m7 = new SMT_PlanDetailModel();
        m7.xSVMaterial = "A2C53140578"; m7.PlanYear = 2011; m7.PlanMonth = 7; m7.PlanMount = 18000; modelList.Add(m7);
        SMT_PlanDetailModel m8 = new SMT_PlanDetailModel();
        m8.xSVMaterial = "A2C53140578"; m8.PlanYear = 2011; m8.PlanMonth = 8; m8.PlanMount = 18000; modelList.Add(m8);
        SMT_PlanDetailModel m9 = new SMT_PlanDetailModel();
        m9.xSVMaterial = "A2C53140578"; m9.PlanYear = 2011; m9.PlanMonth = 9; m9.PlanMount = 18000; modelList.Add(m9);
        SMT_PlanDetailModel m10 = new SMT_PlanDetailModel();
        m10.xSVMaterial = "A2C53140578"; m10.PlanYear = 2011; m10.PlanMonth = 10; m10.PlanMount = 18000; modelList.Add(m10);
        SMT_PlanDetailModel m11 = new SMT_PlanDetailModel();
        m11.xSVMaterial = "A2C53140578"; m11.PlanYear = 2011; m11.PlanMonth = 11; m11.PlanMount = 18000; modelList.Add(m11);
        SMT_PlanDetailModel m12 = new SMT_PlanDetailModel();
        m12.xSVMaterial = "A2C53140578"; m12.PlanYear = 2011; m12.PlanMonth = 12; m12.PlanMount = 18000; modelList.Add(m12);

        gvPlanDetail.DataSource = modelList;
        gvPlanDetail.DataBind();
    }
}